<!DOCTYPE html>
<head></head>
<script type="text/javascript" src="/static/js/jq.js"></script>
<body>
<div style="width: 500px;margin: 0 auto;">
	<textarea id="code" style="width: 90%;height: 400px"></textarea><button id="change">转换</button>
	<div style="margin-top: 20px;">
	<img id="img" src="" style="width: 500px;" />
	</div>
</div>
</body>
<script type="text/javascript">
	$("#change").on("click",function(){
		$("#img").attr("src",$("#code").val());
	})
</script>
</html>
